﻿Jxstar.currentPage = function() {
	var config = {param:{},initpage:function(page, define){},eventcfg:{}};

	var auditData = Jxstar.findComboData('audit');
	var authtypeData = Jxstar.findComboData('authtype');
	var yesnoData = Jxstar.findComboData('yesno');

	var cols = [
	{col:{header:'记录状态', width:81, sortable:true, align:'center',
		editable:false,
		editor:new Ext.form.ComboBox({
			store: new Ext.data.SimpleStore({
				fields:['value','text'],
				data: auditData
			}),
			emptyText: jx.star.select,
			mode: 'local',
			triggerAction: 'all',
			valueField: 'value',
			displayField: 'text',
			editable:false,
			value: auditData[0][0]
		}),
		renderer:function(value){
			for (var i = 0; i < auditData.length; i++) {
				if (auditData[i][0] == value)
					return auditData[i][1];
			}
		}}, field:{name:'pur_apply_audit__auditing',type:'string'}},
	{col:{header:'项目编号', width:100, sortable:true, hidden:true}, field:{name:'pur_apply_audit__project_code',type:'string'}},
	{col:{header:'采购单号', width:104, sortable:true}, field:{name:'pur_apply_audit__apply_code',type:'string'}},
	{col:{header:'项目名称', width:248, sortable:true}, field:{name:'pur_apply_audit__project_name',type:'string'}},
	{col:{header:'授权形式', width:100, sortable:true, align:'center',
		editable:false,
		editor:new Ext.form.ComboBox({
			store: new Ext.data.SimpleStore({
				fields:['value','text'],
				data: authtypeData
			}),
			emptyText: jx.star.select,
			mode: 'local',
			triggerAction: 'all',
			valueField: 'value',
			displayField: 'text',
			editable:false,
			value: authtypeData[0][0]
		}),
		renderer:function(value){
			for (var i = 0; i < authtypeData.length; i++) {
				if (authtypeData[i][0] == value)
					return authtypeData[i][1];
			}
		}}, field:{name:'pur_apply_audit__auth_type',type:'string'}},
	{col:{header:'实施单位', width:100, sortable:true}, field:{name:'pur_apply_audit__dept_name',type:'string'}},
	{col:{header:'主管部门', width:100, sortable:true}, field:{name:'pur_apply_audit__done_deptname',type:'string'}},
	{col:{header:'批复金额(万元)', width:100, sortable:true, renderer:JxUtil.formatNumber(6)}, field:{name:'pur_apply_audit__plan_money',type:'float'}},
	{col:{header:'概算投资(万元)', width:123, sortable:true, renderer:JxUtil.formatNumber(6)}, field:{name:'pur_apply_audit__project_money',type:'float'}},
	{col:{header:'评标时间', width:100, sortable:true, renderer:function(value) {
			return value ? value.format('Y-m-d') : '';
		}}, field:{name:'pur_apply_audit__audit_date',type:'date'}},
	{col:{header:'评标地点', width:258, sortable:true}, field:{name:'pur_apply_audit__audit_address',type:'string'}},
	{col:{header:'合格投标人名称、报价、得分排序', width:100, sortable:true, hidden:true}, field:{name:'pur_apply_audit__audit_content',type:'string'}},
	{col:{header:'废标情况说明', width:100, sortable:true, hidden:true}, field:{name:'pur_apply_audit__cancel_content',type:'string'}},
	{col:{header:'评标方法', width:100, sortable:true, hidden:true}, field:{name:'pur_apply_audit__audit_way',type:'string'}},
	{col:{header:'第一名 中标候选人', width:100, sortable:true, hidden:true}, field:{name:'pur_apply_audit__first_person',type:'string'}},
	{col:{header:'第一名 总评分', width:100, sortable:true, hidden:true}, field:{name:'pur_apply_audit__first_score',type:'string'}},
	{col:{header:'第二名 中标候选人', width:100, sortable:true, hidden:true}, field:{name:'pur_apply_audit__second_person',type:'string'}},
	{col:{header:'第二名 总评分', width:100, sortable:true, hidden:true}, field:{name:'pur_apply_audit__second_score',type:'string'}},
	{col:{header:'第三名 中标候选人', width:100, sortable:true, hidden:true}, field:{name:'pur_apply_audit__third_person',type:'string'}},
	{col:{header:'第三名 总评分', width:100, sortable:true, hidden:true}, field:{name:'pur_apply_audit__third_score',type:'string'}},
	{col:{header:'评委是否已签名', width:100, sortable:true, hidden:true, align:'center',
		renderer:function(value){
			for (var i = 0; i < yesnoData.length; i++) {
				if (yesnoData[i][0] == value)
					return yesnoData[i][1];
			}
		}}, field:{name:'pur_apply_audit__sign_name',type:'string'}},
	{col:{header:'采购单ID', width:100, sortable:true, hidden:true}, field:{name:'pur_apply_audit__apply_id',type:'string'}},
	{col:{header:'项目ID', width:100, sortable:true, hidden:true}, field:{name:'pur_apply_audit__project_id',type:'string'}},
	{col:{header:'主键', width:100, sortable:true, hidden:true}, field:{name:'pur_apply_audit__audit_id',type:'string'}},
	{col:{header:'监督人员签名', width:100, sortable:true, hidden:true}, field:{name:'pur_apply_audit__users_chk',type:'string'}},
	{col:{header:'主管部门ID', width:100, sortable:true, hidden:true}, field:{name:'pur_apply_audit__done_deptid',type:'string'}},
	{col:{header:'实施单位ID', width:100, sortable:true, hidden:true}, field:{name:'pur_apply_audit__dept_id',type:'string'}},
	{col:{header:'采购单名称', width:100, sortable:true, hidden:true}, field:{name:'pur_apply_audit__apply_name',type:'string'}}
	];
	
	config.param = {
		cols: cols,
		sorts: null,
		hasQuery: '1',
		isedit: '0',
		isshow: '1',
		funid: 'pur_apply_audit'
	};
	
	
		
	return new Jxstar.GridNode(config);
}